const DEFAULT_CLASS_PAGE  ="__class_page";
const classWare ={
	
};
classWare[DEFAULT_CLASS_PAGE] = {};
const classPageWare ={};
function loadClass(type,cls,creator,page){
	let cvo ={
		cls:cls,
		creator:creator
	}
	page = page || DEFAULT_CLASS_PAGE;
	if(!classWare[page]){
		classWare[page] = {};
	}
	classWare[page][type] = cvo;
}
function getClass(type,page){
	page = page || DEFAULT_CLASS_PAGE;
	if(classWare[page] && classWare[page][type]){
		return classWare[page][type].cls;
	}
	return null;
}
function getClassCreator(type,page){
	page = page || DEFAULT_CLASS_PAGE;
	if(classWare[page] && classWare[page][type]){
		return classWare[page][type].creator;
	}
	return null;
}

const classLoader ={
	loadClass,
	getClass,
	getClassCreator
	
};

export default classLoader